package com.ruoyi.system.service.impl;

import java.util.List;
import java.util.Map;

import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.excel.ProvideRecordsdExcel;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ProvideRecordsMapper;
import com.ruoyi.system.domain.ProvideRecords;
import com.ruoyi.system.service.IProvideRecordsService;

/**
 * 配件库开票明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
@Service
public class ProvideRecordsServiceImpl implements IProvideRecordsService 
{
    @Autowired
    private ProvideRecordsMapper provideRecordsMapper;

    /**
     * 查询配件库开票明细
     * 
     * @param id 配件库开票明细主键
     * @return 配件库开票明细
     */
    @Override
    public ProvideRecords selectProvideRecordsById(Long id)
    {
        return provideRecordsMapper.selectProvideRecordsById(id);
    }

    /**
     * 查询配件库开票明细列表
     * 
     * @param provideRecords 配件库开票明细
     * @return 配件库开票明细
     */
    @Override
    public List<ProvideRecords> selectProvideRecordsList(ProvideRecords provideRecords)
    {
        return provideRecordsMapper.selectProvideRecordsList(provideRecords);
    }

    /**
     * 新增配件库开票明细
     * 
     * @param provideRecords 配件库开票明细
     * @return 结果
     */
    @Override
    public int insertProvideRecords(ProvideRecords provideRecords)
    {
        return provideRecordsMapper.insertProvideRecords(provideRecords);
    }

    /**
     * 修改配件库开票明细
     * 
     * @param provideRecords 配件库开票明细
     * @return 结果
     */
    @Override
    public int updateProvideRecords(ProvideRecords provideRecords)
    {
        return provideRecordsMapper.updateProvideRecords(provideRecords);
    }

    /**
     * 批量删除配件库开票明细
     * 
     * @param ids 需要删除的配件库开票明细主键
     * @return 结果
     */
    @Override
    public int deleteProvideRecordsByIds(Long[] ids)
    {
        return provideRecordsMapper.deleteProvideRecordsByIds(ids);
    }

    /**
     * 删除配件库开票明细信息
     * 
     * @param id 配件库开票明细主键
     * @return 结果
     */
    @Override
    public int deleteProvideRecordsById(Long id)
    {
        return provideRecordsMapper.deleteProvideRecordsById(id);
    }

    @Override
    public List<String> selectProductCode(List<String> productList) {
        return provideRecordsMapper.selectProductCode(productList);
    }

    @Override
    public List<Map<String, Object>> selectWareMoney(String wareHouseCode,String createTime,String provide) {
        return provideRecordsMapper.selectWareMoney(wareHouseCode,createTime,provide);
    }

    @Override
    public List<Map<String, Object>> selectOutWareMoney(String wareHouseCode, String createTime, String provide) {
        return provideRecordsMapper.selectOutWareMoney(wareHouseCode,createTime,provide);
    }

    @Override
    public Double selectSumMoney(String provide, String createTime, String warehouseCode) {
        return provideRecordsMapper.selectSumMoney(provide,createTime,warehouseCode);
    }

    @Override
    public Double setlectSumProductMoney(String provide, String createTime, String warehouseCode) {
        return provideRecordsMapper.setlectSumProductMoney(provide,createTime,warehouseCode);
    }

    @Override
    public List<Map<String, Object>> selectProvideWareMoney(String createTime, String provide) {
        return provideRecordsMapper.selectProvideWareMoney(createTime,provide);
    }

    @Override
    public List<String> selectProvideList(String provide) {
        return provideRecordsMapper.selectProvideList(provide);
    }

    @Override
    public List<Map<String, Object>> selectSumProfitMoney(String startTime) {
        return provideRecordsMapper.selectSumProfitMoney(startTime);
    }

    @Override
    public Integer deleteUpload(String time) {
        return provideRecordsMapper.deleteUpload(time);
    }

    @Override
    public List<ProvideRecordsdExcel> selectProvideExcelList(ProvideRecords provideRecords) {
        return provideRecordsMapper.selectProvideExcelList(provideRecords);
    }

    @Override
    public int insertBatch(List<ProvideRecords> provideRecordsList) {
        return provideRecordsMapper.insertBatch(provideRecordsList);
    }

    public Double selectAllMoney(String provider, String createTime) {
        return provideRecordsMapper.selectAllMoney(provider,createTime);
    }

    public Double selectMoney(String provider, String createTime) {
        return provideRecordsMapper.selectMoney(provider,createTime);
    }
    public Double selectAllMoneyPrice(String provider, String createTime) {
        return provideRecordsMapper.selectAllMoneyPrice(provider,createTime);
    }

    public Double selectAllMoneyCount(String provider, String createTime) {
        return provideRecordsMapper.selectAllMoneyCount(provider,createTime);
    }

    public Double selectYSMoneyPrice3(String createTime) {
        return provideRecordsMapper.selectYSMoneyPrice3(createTime);
    }

    public Double selectYSMoneyPrice10(String createTime) {
        return provideRecordsMapper.selectYSMoneyPrice10(createTime);
    }
    public Double selectSDMoneyPrice(String createTime) {
        return provideRecordsMapper.selectSDMoneyPrice(createTime);
    }

    public Double selectSDMoneyPricePt(String createTime) {
        return provideRecordsMapper.selectSDMoneyPt(createTime);
    }

    public Double selectSDMoneyPriceLT(String createTime) {
        return provideRecordsMapper.selectSDMoneyLT(createTime);
    }

    public Double selectXHMoneyPriceZXK(String createTime) {
        return provideRecordsMapper.selectXHMoneyPriceZXK(createTime);
    }

    public Double selectXHMoneyPrice(String createTime) {
        return provideRecordsMapper.selectXHMoneyPrice(createTime);
    }

    public Double selectYDMoneyPrice(String createTime) {
        return provideRecordsMapper.selectYDMoneyPrice(createTime);
    }

    @Override
    public Double selectHXMoneyPrice(String startTime) {
        return provideRecordsMapper.selectHXMoneyPrice(startTime);
    }

    @Override
    public Double selectHXMoneyRHY(String startTime) {
        return provideRecordsMapper.selectHXMoneyRHY(startTime);
    }

    @Override
    public Double selectPRCMoneyRHY(String startTime) {
        return provideRecordsMapper.selectPRCMoneyRHY(startTime);
    }

    @Override
    public Double selectDLMoneyRHY(String startTime) {
        return provideRecordsMapper.selectDLMoneyRHY(startTime);
    }

    @Override
    public Double selectYYMoneyRHY(String startTime) {
        return provideRecordsMapper.selectYYMoneyRHY(startTime);
    }

    @Override
    public Double selectSDMoneyPriceRHY(String startTime) {
        return provideRecordsMapper.selectSDMoneyPriceRHY(startTime);
    }

    @Override
    public Double selectYSMoneyPrice(String startTime) {
        return provideRecordsMapper.selectYSMoneyPrice(startTime);
    }

    @Override
    public Double selectYSMoneyPriceRHY(String startTime) {
        return provideRecordsMapper.selectYSMoneyPriceRHY(startTime);
    }

    @Override
    public Double selectYSMoneyPricePt(String startTime) {
        return provideRecordsMapper.selectYSMoneyPricePt(startTime);
    }
}
